/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.hydms.score.entity;

import org.hibernate.validator.constraints.Length;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 宿舍评分Entity
 * @author 刘健
 * @version 2017-04-05
 */
public class DmsScore extends DataEntity<DmsScore> {
	
	private static final long serialVersionUID = 1L;
	private String dormitoryNumber;		// 宿舍号
	private String classes;		// 班级
	private String health;		// 卫生
	private String repair;		// 报修
	private String illegal;		// 违规
	private String others;		// 其他
	private String allMarks;		// 总评分
	private Date markDate;		// 评分日期
	
	public DmsScore() {
		super();
	}

	public DmsScore(String id){
		super(id);
	}

	@Length(min=0, max=64, message="宿舍号长度必须介于 0 和 64 之间")
	public String getDormitoryNumber() {
		return dormitoryNumber;
	}

	public void setDormitoryNumber(String dormitoryNumber) {
		this.dormitoryNumber = dormitoryNumber;
	}
	
	@Length(min=0, max=64, message="班级长度必须介于 0 和 64 之间")
	public String getClasses() {
		return classes;
	}

	public void setClasses(String classes) {
		this.classes = classes;
	}
	
	@Length(min=0, max=64, message="卫生长度必须介于 0 和 64 之间")
	public String getHealth() {
		return health;
	}

	public void setHealth(String health) {
		this.health = health;
	}
	
	@Length(min=0, max=64, message="报修长度必须介于 0 和 64 之间")
	public String getRepair() {
		return repair;
	}

	public void setRepair(String repair) {
		this.repair = repair;
	}
	
	@Length(min=0, max=64, message="违规长度必须介于 0 和 64 之间")
	public String getIllegal() {
		return illegal;
	}

	public void setIllegal(String illegal) {
		this.illegal = illegal;
	}
	
	@Length(min=0, max=64, message="其他长度必须介于 0 和 64 之间")
	public String getOthers() {
		return others;
	}

	public void setOthers(String others) {
		this.others = others;
	}
	
	@Length(min=0, max=64, message="总评分长度必须介于 0 和 64 之间")
	public String getAllMarks() {
		return allMarks;
	}

	public void setAllMarks(String allMarks) {
		this.allMarks = allMarks;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getMarkDate() {
		return markDate;
	}

	public void setMarkDate(Date markDate) {
		this.markDate = markDate;
	}
	
}